package com.gxuwz.attend.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import java.time.LocalDate;

/*
 * 请假导出类
 * */
public class LeaveExport {
    @ExcelProperty("请假ID")
    @ColumnWidth(15)
    private String leaveID; //请假编号
    @ExcelProperty("课程ID")
    @ColumnWidth(15)
    private String courseID; //课程编号
    @ExcelProperty("请假原因")
    @ColumnWidth(15)
    private String reason; //请假事由
    @ExcelProperty("请假天数")
    @ColumnWidth(15)
    private Integer daynum; //天数
    @ExcelProperty("学生编号")
    @ColumnWidth(15)
    private String stuNo; //学号
    @ExcelProperty("申请时间")
    @ColumnWidth(15)
    private String applytime; //请假时间
    @ExcelProperty("状态")
    @ColumnWidth(15)
    private String status; //状态
    @ExcelProperty("审核时间")
    @ColumnWidth(15)
    private String datetime; //审核时间
    @ExcelProperty("审核意见")
    @ColumnWidth(15)
    private String opinion; //审核意见


    public String getLeaveID() {
        return leaveID;
    }

    public void setLeaveID(String leaveID) {
        this.leaveID = leaveID;
    }

    public String getCourseID() {
        return courseID;
    }

    public void setCourseID(String courseID) {
        this.courseID = courseID;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getDaynum() {
        return daynum;
    }

    public void setDaynum(Integer daynum) {
        this.daynum = daynum;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getApplytime() {
        return applytime;
    }

    public void setApplytime(String applytime) {
        this.applytime = applytime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    @Override
    public String toString() {
        return "LeaveExport{" +
                "leaveID='" + leaveID + '\'' +
                ", courseID='" + courseID + '\'' +
                ", reason='" + reason + '\'' +
                ", daynum=" + daynum +
                ", stuNo='" + stuNo + '\'' +
                ", applytime='" + applytime + '\'' +
                ", status='" + status + '\'' +
                ", datetime='" + datetime + '\'' +
                ", opinion='" + opinion + '\'' +
                '}';
    }

    public LeaveExport() {
    }

    public LeaveExport(String leaveID, String courseID, String reason, Integer daynum, String stuNo, String applytime, String status, String datetime, String opinion) {
        this.leaveID = leaveID;
        this.courseID = courseID;
        this.reason = reason;
        this.daynum = daynum;
        this.stuNo = stuNo;
        this.applytime = applytime;
        this.status = status;
        this.datetime = datetime;
        this.opinion = opinion;
    }
}
